package com.hy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hy.domain.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hy.domain.dto.BlogDTO;
import com.hy.domain.dto.PageQuery;
import com.hy.domain.dto.R;

import java.util.List;

/**
* @author hou
* @description 针对表【blog(文章信息)】的数据库操作Service
* @createDate 2023-04-23 19:04:41
*/
public interface BlogService extends IService<Blog> {

    List<Blog> listBySectionId(int id);

//    R<Blog> saveBlog(BlogDTO blog);

    R<Blog> updateBlog(Blog dto);

    void saveBlog(Blog blog);

    Page listPagesByQuery(int page, int size, String keyword);

    IPage listPagesByUser(Long id, int page, int size);

    BlogDTO getBlogById(long id);
}
